package com.azier;

import com.azier.main.MainBean;
import com.azier.mysql.model.MonitoringStatsDataDay;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.PropertySource;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2019/11/20 10:06
 * 3
 */

@SpringBootApplication()
@PropertySource("classpath:config.properties")
public class MainC {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(MainC.class,args);
        MainBean mainBean = applicationContext.getBean(MainBean.class);
        try {
            mainBean.processDayData();
        }catch (Exception e){
            System.out.println(e.getMessage());
        }

    }

}
